<template>
	<div class="DetailContent">
		<div class="top">
			<div class="proInfos">
			<h2>{{DetailContent.title}}</h2>
			</div>
			<div class="collect">
				<b></b>
				<span>收藏</span>
			</div>
		</div>
		<div class="middle">
			<div class="price">
				<h2>{{DetailContent.newPrice | Fiexd | rmb}}</h2>
			</div>
			<ul>
				<li v-for="item in DetailContent.postTitle">{{item}}</li>
				
			</ul>
		</div>
		<div class="bottom">
			<div class="old-price">
				<h2>{{DetailContent.oldPrice | Fiexd | rmb}}</h2>
			</div>
			<ul>
				<li v-for="item in DetailContent.postInfo">{{item}}</li>
				
			</ul>
		</div>
	</div>
</template>

<script>
	export default{
		name:"DetailContent",
		props:["DetailContent"],
		filters:{
			Fiexd(v){
				return parseInt(v).toFixed(2);
			},
			rmb(v){
				return "￥"+v
			}
		}
	}
</script>

<style lang="scss" scoped>
.DetailContent{
	width: 100%;
	box-sizing: border-box;
	padding: 0 0px 20px 30px;
	.top{
		 display: flex;
		 justify-content:space-between;
		.proInfos{
			
			h2{
				line-height:40px;
				font-size: 29.95px;
			}
		}
		.collect{
			border-left: 1px solid #dddddd;
			margin-top: 5px;
			width: 98px;
			height: 70px;
			display: flex;
			flex-direction: column;
			text-align: center;
			b{
				width: 38px;
				height: 38px;
				background: url('~img/details/collection.png') no-repeat ;
				background-size: 38px 38px;
				margin:0 auto;
			}
			span{
				display: block;
				margin-top: 5px;
				font-size: 15.98px;
				color: #e71f19;
			}
			
		}
		
	}
	.middle{
		display: flex;
		.price{
			font-size: 33.95px;
			color: #eb2222;
			margin-right:40px;
		}
		ul{
			display: flex;
			li{
				width: 70px;
				height: 30px;
				line-height: 30px;
				background:#ff9900;
				color: #FFFFFF;
				margin-right: 20px;
				font-size: 19.97px;
				text-align: center;
			}
		}
	}
	.bottom{
		display: flex;
		justify-content: space-between;
		.old-price{
			h2{
				font-size: 23.96px;
				color: #999999;
				text-decoration:line-through;
				margin-right: 70px;
				line-height: 50px;
			}
			
		}
		ul{
			display: flex;
			flex-wrap:wrap;
			li{
				font-family:"SimSun";
				width: 115px;
				height: 30px;
				line-height: 30px;
				border:2px solid #ff9900;
				color: #ff9900;
				text-align: center;
				font-size: 12px;
				margin: 10px;
				font-size: 12px;
			}
		}
	}
}
</style>